package com.pureut.storage.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.pureut.storage.domain.AllotManagementDetail;
import com.pureut.storage.dto.AllotManagementDetailDto;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface AllotManagementDetailMapper extends BaseMapper<AllotManagementDetail> {

    /**
     * 查询当前批次且状态为待交接状态的总重量
     */
    Double getPiHao(@Param("pihao") String pihao);

    /**
     * 查询当前单据且交接状态为待交接的总重量
     */
    Double getDoc(@Param("doc") String doc);

    /**
     * 调拨单明细列表
     * @return
     */
    List<AllotManagementDetailDto> getAllotManagementDetailList(String docNum);

    /**
     * 根据物料号码查询调拨明细
     * @return
     */
    AllotManagementDetailDto getAllotManagementDetailInfo(String materialNumber);

}
